package com.harmontronics.hanma.paas.paas;

import cn.hutool.core.util.PageUtil;
import com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceAutoConfiguration;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.system.ApplicationHome;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import java.io.File;
import java.util.HashMap;
import java.util.Map;

@SpringBootApplication(exclude = FlywayAutoConfiguration.class)
@EnableSwagger2
@EnableTransactionManagement
@EnableCaching
@EnableAsync
@EnableScheduling
@EnableFeignClients
public class StartApplication {

    public static void main(String[] args) {
        SpringApplicationBuilder builder = new SpringApplicationBuilder(StartApplication.class);
        builder.web(WebApplicationType.SERVLET).run(args);
        PageUtil.setOneAsFirstPageNo();
    }


}
